package com.ifugle.rap.application.mapper;

import java.util.List;
import com.ifugle.rap.application.model.UserTool;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserToolMapper {

    int deleteByPrimaryKey(Long id);

    int insert(UserTool record);

    int insertSelective(UserTool record);

    UserTool selectByPrimaryKey(Long id);

    List<UserTool> selectByUserId(Long userId);

    int updateByPrimaryKeySelective(UserTool record);

    int updateByPrimaryKey(UserTool record);

    UserTool selectByUserIdAndToolId(@Param("userId") Long userId,@Param("toolId") Long toolId);
}
